<?php
    $this->headTitle('Thêm hãng sản xuất');
    
    $formAddMaker->setAttribute('action', $this->url('product-admin/doaction', array('controller' => 'product-admin-controller','action' => 'add-maker')));
    
    $formAddMaker->setAttribute('class', 'form-horizontal');
    
    $formAddMaker->prepare();
    
    echo $this->form()->openTag($formAddMaker);
?>

<div class="form-group">
    <?php echo $this->formLabel($formAddMaker->get('product_maker_name')); ?>
    <div class="col-md-4">
        <?php echo $this->formInput($formAddMaker->get('product_maker_name')); ?>
        <?php if ($this->formElementErrors($formAddMaker->get('product_maker_name'))) { ?>
            <div class="alert-danger" style="margin-top: 10px;">
                <?php echo $this->formElementErrors($formAddMaker->get('product_maker_name')); ?>
            </div>
        <?php } ?>
    </div>
</div>

<?php echo $this->formHidden($formAddMaker->get('product_maker_id'));?>
<?php echo $this->formHidden($formAddMaker->get('action_type'));?>

<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <?php echo $this->formSubmit($formAddMaker->get('save_maker')); ?>
    </div>
</div>

<?php echo $this->form()->closeTag();?>